package com.quanyan.user.test;

import com.quanyan.user.mapper.UserInfoMapper;
import com.quanyan.user.model.db.TbUser;

import java.util.List;

/**
 * Created by zhang on 16/9/1.
 */
public class UserInsertThread implements Runnable  {

    private UserInfoMapper userInfoMapper;

    private List<TbUser> list;

    public UserInsertThread(UserInfoMapper userInfoMapper,List<TbUser> list){
        this.userInfoMapper = userInfoMapper;
        this.list = list;

    }
    @Override
    public void run() {
        userInfoMapper.batchInsert(list);
    }
}
